package com.pap.datas.dict.auto.entity;

import java.io.Serializable;

import com.pap.base.entity.PapBaseEntity;
import com.pap.base.mybatis.plugin.annotation.MyBatisColumnAnnotation;
import com.pap.base.mybatis.plugin.annotation.MyBatisTableAnnotation;

@MyBatisTableAnnotation(name = "t_data_dict", namespace = "com.pap.datas.dict.auto.mapper.DictMapper", remarks = " 修改点 ", aliasName = "t_data_dict t_data_dict")
public class Dict extends PapBaseEntity implements Serializable {
	/**
	 * 编码,所属表字段为t_data_dict.CODE
	 */
	@MyBatisColumnAnnotation(name = "CODE", value = "t_data_dict_CODE", chineseNote = "编码", tableAlias = "t_data_dict")
	private String code;

	/**
	 * 名称,所属表字段为t_data_dict.NAME
	 */
	@MyBatisColumnAnnotation(name = "NAME", value = "t_data_dict_NAME", chineseNote = "名称", tableAlias = "t_data_dict")
	private String name;

	/**
	 * 备注,所属表字段为t_data_dict.REMARK
	 */
	@MyBatisColumnAnnotation(name = "REMARK", value = "t_data_dict_REMARK", chineseNote = "备注", tableAlias = "t_data_dict")
	private String remark;

	/**
	 * 排序号,所属表字段为t_data_dict.ORDER_NO
	 */
	@MyBatisColumnAnnotation(name = "ORDER_NO", value = "t_data_dict_ORDER_NO", chineseNote = "排序号", tableAlias = "t_data_dict")
	private String orderNo;

	/**
	 * 字典类型,所属表字段为t_data_dict.DICT_TYPE
	 */
	@MyBatisColumnAnnotation(name = "DICT_TYPE", value = "t_data_dict_DICT_TYPE", chineseNote = "字典类型", tableAlias = "t_data_dict")
	private String dictType;

	private static final long serialVersionUID = 1L;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getDictType() {
		return dictType;
	}

	public void setDictType(String dictType) {
		this.dictType = dictType;
	}
	
	@Override
	public String getDynamicTableName() {
		return "t_data_dict";
	}

	@Override
	public String toString() {
		StringBuilder sb = new StringBuilder();
		sb.append(getClass().getSimpleName());
		sb.append(" [");
		sb.append("Hash = ").append(hashCode());
		sb.append(", code=").append(code);
		sb.append(", name=").append(name);
		sb.append(", remark=").append(remark);
		sb.append(", orderNo=").append(orderNo);
		sb.append(", dictType=").append(dictType);
		sb.append("]");
		return sb.toString();
	}
}